<template>
  <div class="content">
    <e-heading grade='1'>编辑学员信息</e-heading>
    <student-info :formList="[]" :studentInfo="studentInfo" :isAdd="isAdd"/>
  </div>
</template>

<script>
import studentInfo from './components/StudentInfo'
import trainApi from 'api/train'
export default {
  components: {
    studentInfo
  },
  data () {
    return {
      isAdd: false,
      studentInfo: {}
    }
  },
  mounted () {
    trainApi.studentDetail({studentId: this.$route.query.id}).then(res => { // 学员信息
      res.data = Object.assign({locationOrigin: [res.data.locationProvinceId, res.data.locationCityId]}, res.data)
      this.studentInfo = res.data
    })
  }
}
</script>

<style lang="scss" scoped>

</style>
